import http from '@/service/http'
import type * as T from '@/types/api/index'
const SystemApi: T.CsystemSttate = {
  doRich(type) {
    return http.get(`/setting/getTypeSetting/${type}`)
  },
  doOrderDetail(id) {
    return http.get(`/orders/getOrderInfo/${id}`)
  },
  doUserEcahrts(data) {
    return http.post(`/user/enchants`, data)
  },
  doOrderEcahrts(data) {
    return http.post(`/orders/enchants`, data)
  },
  doWidthEcahrts(data) {
    return http.post(`/orders/enchants`, data)
  },
  doOrderSum() {
    return http.get(`/orders/adminSum`)
  }
}

export default SystemApi
